package org.dromara.run.domain.bo;

import org.dromara.run.domain.Record;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 阳光跑跑步记录表业务对象 phy_run_record
 *
 * @author chl
 * @date 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Record.class, reverseConvertGenerate = false)
public class RecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long recordId;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 计划id
     */
//    @NotBlank(message = "计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scheduleId;

    /**
     * 用户信息id
     */
//    @NotBlank(message = "用户信息id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberId;

    /**
     * 跑步开始时间
     */
//    @NotNull(message = "跑步开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 跑步结束时间
     */
//    @NotNull(message = "跑步结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 数据上传时间
     */
//    @NotNull(message = "数据上传时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date uploadTime;

    /**
     * 总用时
     */
//    @NotNull(message = "总用时不能为空", groups = { AddGroup.class, EditGroup.class })
    private String duration;

    /**
     * 配速
     */
//    @NotBlank(message = "配速不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pace;

    /**
     * 跑步距离（公里）
     */
//    @NotNull(message = "跑步距离（公里）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal mileage;

    /**
     * 拍摄次数
     */
//    @NotNull(message = "拍摄次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long frequency;

    /**
     * 状态说明
     */
//    @NotBlank(message = "状态说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 记录类型
     */
//    @NotBlank(message = "记录类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String recordType;

    /**
     * 跑步照片URL
     */

    private String imageUrl;

    private String studentName;

    private String years;

    private String collegeId;

    private String professionalId;

    private String classId;

    private String gender;

    private String semester;


}
